package net.ermannofranco.xml.schema.validation;

import org.w3c.dom.DOMError;
import org.w3c.dom.DOMLocator;

public class SchemaErrorEvent {

	private final DOMError error;

	public SchemaErrorEvent(DOMError error) {
		this.error=error;
	}

	public DOMLocator getLocation() {
		return error.getLocation();
	}

	public String getMessage() {
		return error.getMessage();
	}

	public Object getRelatedData() {
		return error.getRelatedData();
	}

	public Object getRelatedException() {
		return error.getRelatedException();
	}

	public short getSeverity() {
		return error.getSeverity();
	}

	public String getType() {
		return error.getType();
	}

}
